package cn.com.sueframe.action;

import java.sql.SQLException;

import cn.com.sueframe.exception.ApplicationException;
import cn.com.sueframe.service.CompanyInfoService;
import cn.com.sueframe.vo.CompanyVO;

public class ContactAction extends BaseActionSupport {
	/**
	 * 序列化
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 公司信息服务层
	 */
	private CompanyInfoService companyInfoService;

	/**
	 * 查询联系方式
	 * 
	 * @author anler
	 * @return void Created Jul 14, 2013
	 */
	public String findContact() {
		init();
		CompanyVO companyDetailInfoVO;
    	try {
    		companyDetailInfoVO = companyInfoService.findCompanyInfo();
		} catch (SQLException e) {
			e.printStackTrace();
			new ApplicationException(e);
			return null;
		}
		this.ajaxResponseJsonString(companyDetailInfoVO);
		return null;
	}

	public CompanyInfoService getCompanyInfoService() {
		return companyInfoService;
	}

	public void setCompanyInfoService(CompanyInfoService companyInfoService) {
		this.companyInfoService = companyInfoService;
	}

}
